* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: 'Segoe UI', sans-serif;
  background-color: #f4f4f4;
}

.page-layout {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

.tool-panel {
  background: linear-gradient(135deg, #e3f2fd, #fce4ec);
  padding: 20px;
  border-bottom: 1px solid #ccc;
  overflow-y: auto;
  min-height: 120px;
}

.tool-panel h2 {
  margin-top: 15px;
  font-size: 1.1rem;
  color: #333;
}

.project-controls button {
  margin-right: 10px;
  background-color: #ba68c8;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
}

.tool-buttons {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.model-tool {
  padding: 10px;
  width: calc(25% - 7.5px);
  background-color: #64b5f6;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.model-tool:hover {
  background-color: #42a5f5;
}

.material-library,
.lighting-settings {
  margin-top: 20px;
}

.materials {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.material {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.workspace {
  flex: 1;
  position: relative;
  background-color: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#renderCanvas {
  width: 100%;
  height: 100%;
  display: block;
}